#include <stdio.h>
#include <stdlib.h>

int *func3();
int *func4();
int main(int argc, char *argv[]) {
  /* 指针函数的使用
   */
  int *rlt = func3();
  printf("rlt = %d\n", *rlt);
  rlt = func4();
  printf("rlt = %d\n", *rlt);
  return EXIT_SUCCESS;
}

int *func3() {
  static int m = 10;
  return &m;
}

int *func4() {
  int *m = malloc(sizeof(int));
  *m = 20;
  return m;
}
